<?php
	require_once 'C:\xampp\htdocs\PhotoAlbumOnline\db-connection.php';
	// require_once '../db-connection.php';
	
	class Album {
		private $name;
		private $description;
		private $userId;
		
		function __construct($name, $descr) {
			global $dbConnection;
			$this->name = $name;
			$this->description = $descr;
			$this->userId = $dbConnection->getCurrentUserId();
		}

		public function getName() {	
			return $this->name;
		}
		public function getDescr() {
			return $this->name;	
		}
		public function getUserId() {
			return $this->userId;	
		}
	}
	
//  	session_start();
//  	$_SESSION['username'] = 'polina';
//  	var_dump(new Album('a','b'));
//  	session_destroy();
?>